﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace MyAMS.WebServer.Models
{
    /// <summary>
    /// 节点
    /// </summary>
    [DataContract]
    public class Node : BaseNode
    {
        /// <summary>
        /// 获取域名列表
        /// </summary>
        [DataMember]
        public IList<string> Domains { get; set; }

        /// <summary>
        /// 获取或设置子集节点
        /// </summary>
        /// <value>子集节点</value>
        [DataMember]
        public IList<BaseNode> Children { get; set; }

        /// <summary>
        /// 获取或设置容器最大级层数 0-无限 1-不可存在下级 2,3,4,5...
        /// </summary>
        /// <value>容器最大级层数</value>
        [DataMember]
        public int MaximumLevel { get; set; }

        /// <summary>
        /// 获取或设置最大子节点数量(传归)
        /// </summary>
        /// <value>最大子节点数量</value>
        [DataMember]
        public int MaximumChildren { get; set; }

        /// <summary>
        /// 获取或设置连接字符串
        /// </summary>
        /// <value>连接字符串</value>
        [DataMember]
        public string ConnectionString { get; set; }
    }
}
